package com.fcat.common.user.mapper;

import com.fcat.springboot.mybatis.mapper.base.TsuantoneBaseMapper;
import com.fcat.common.user.entity.UserAudit;
import com.fcat.common.user.vo.SysLoginLog;
import com.fcat.common.user.vo.UserAuditVO;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface UserAuditMapper extends TsuantoneBaseMapper<UserAudit> {
    List<UserAudit> selectListByUsername(Map<String,Object> map);

    UserAudit getOneByUserAuditId(String userAuditId);

    UserAudit getByUsernameAndToken(@Param("username") String username, @Param("token") String token);
    List<SysLoginLog> getSysLoginLogList(Map<String,Object> map);

    List<UserAuditVO> getLogList(Map<String,Object> map);

    List<UserAuditVO> getLast2LoginLog(String username);
}